package org.example.java.model;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.example.java.base.BaseEntity;

@ApiModel(description = "user")
@TableName("t_user")
public class User extends BaseEntity {

    private static final long serialVersionUID = 1;

    @ApiModelProperty("user status")
    @TableField(value = "status", updateStrategy = FieldStrategy.NOT_NULL)
    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "User{" +
                "status='" + status + '\'' +
                '}';
    }
}
